package edu.upc.dew.service.exception;

/**
 *
 * @author gian.corzo
 */
public class BusinessException extends RuntimeException{

    private boolean validationException;


    public BusinessException(String message){
        super(message);
        this.validationException = true;
    }

    public BusinessException(Exception ex,String message){
        super(message,ex);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public boolean isValidationException() {
        return validationException;
    }
}
